package com.exoweb.games.hexagone.model.vo
{
    import com.exoweb.common.model.vo.CasualGameVo;
    import com.exoweb.games.hexagone.Config;

    public class GameVo extends CasualGameVo
    {
        public var unlockedLevel:int;
        public var score:int;
        public var levelLimit:int = 5;

        // Game Data by levels
        public var randomTimeout:Array = [10000, 7000, 7000, 5000, 5000];
        public var basketBaseSpeed:Array = [2, 2, 3, 3, 4];
        public var createBasketBaseDelay:Array = [3000, 3000, 2500, 2500, 2000];
        public var thriceProbability:Array = [0, 0.02, 0.05, 0.05, 0.05];
        public var slowProbability:Array = [0, 0, 0.03, 0.03, 0.04];
        public var goals:Array = [[10,10,10],
                                  [12,12,12],
                                  [15,15,15],
                                  [18,18,18],
                                  [100,100,100]];

        public function GameVo()
        {
            super(Config.gameId);
            unlockedLevel = 1;
            score = 0;
        }

        public function reset():void
        {
            this.eggResult = new Array();
            this.eggs = 0;
            this.win = 0;
            this.score = 0;
            this.newBalance = NaN;
        }
    }
}
